package com.monitor.entity;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 合同协议维修价格表
 * </p>
 *
 * @author LX
 * @since 2018-09-17
 */
@TableName("erp_contract_repair")
public class ErpContractRepair extends Model<ErpContractRepair> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 合同所属的客户id
     */
    private Integer pid;
    /**
     * 维修项目
     */
    @TableField("rep_name")
    private String repName;
    /**
     * 价格
     */
    @TableField("rep_price")
    private String repPrice;
    /**
     * 单位
     */
    @TableField("rep_unit")
    private String repUnit;
    /**
     * 协议id
     */
    @TableField("contract_id")
    private Integer contractId;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getRepName() {
        return repName;
    }

    public void setRepName(String repName) {
        this.repName = repName;
    }

    public String getRepPrice() {
        return repPrice;
    }

    public void setRepPrice(String repPrice) {
        this.repPrice = repPrice;
    }

    public String getRepUnit() {
        return repUnit;
    }

    public void setRepUnit(String repUnit) {
        this.repUnit = repUnit;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    
    

    public Integer getContractId() {
		return contractId;
	}

	public void setContractId(Integer contractId) {
		this.contractId = contractId;
	}

	@Override
    public String toString() {
        return "ErpContractRepair{" +
        ", id=" + id +
        ", pid=" + pid +
        ", repName=" + repName +
        ", repPrice=" + repPrice +
        ", repUnit=" + repUnit +
        "}";
    }
}
